<?php
namespace Home\Controller;
use Think\Controller;
class CommonController extends Controller{
	  public function _initialize(){
		if(!session('user_id') ||session('header')!=$_SERVER['REMOTE_ADDR'].$_SERVER['HTTP_USER_AGENT']){
			
			$this->redirect('Login/Index');
		}else{
			session_regenerate_id();
			}
	  }
	  }

?>
